package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 工序工位关联对象 process_station_relation
 *
 * @author ruoyi
 * @date 2025-07-12
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.ProcessStationRelationMapper.ProcessStationRelationResult")
public class ProcessStationRelation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 工序数据主键id
     */
    @Excel(name = "工序数据主键id")
    private Long processId;

    /**
     * 工位id
     */
    @Excel(name = "工位id")
    private Long stationId;


    @Excel(name = "工位编码")
    private String stationCode;

    /**
     * 工位名称
     */
    @Excel(name = "工位名称")
    private String stationName;

    /**
     * 生产线id
     */
    @Excel(name = "生产线id")
    private Long productionLineId;

    /**
     * 生产线名称
     */
    @Excel(name = "生产线名称")
    private String productionLineName;

    /**
     * 车间id
     */
    @Excel(name = "车间id")
    private Long workshopId;

    /**
     * 车间名称
     */
    @Excel(name = "车间名称")
    private String workshopName;

    /**
     * 工厂id
     */
    @Excel(name = "工厂id")
    private Long factoryId;

    /**
     * 工厂名称
     */
    @Excel(name = "工厂名称")
    private String factoryName;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long equipmentId;
    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String equipmentName;
    /**
     * 标识删除 0-未删除，1-已删除
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Version
    private Long version;

}